import { ref, computed } from 'vue'
const useCount = (state) => {
    let count = ref(state);
    let dbCount = computed(() => count.value * 2);
    const changeCount = () => {
        count.value++;
    };
    return [count, dbCount, changeCount]
}

export default useCount